#define WIN_X_BORDER_SIZE 8 /* Space taked by window frame. */
#define WIN_Y_BORDER_SIZE 65
#define FONT_MIN_SIZE 5
#define FONT_MAX_SIZE 21
#define PRINT_TAB_SIZE 8 /* Tab size used by print code. */
#define TB_HEIGHT 32 /* Tool Bar Height. */
#define TB_BUTTONHEIGHT 16 /* Button Height. */
#define TB_BUTTONSPACING 8 /* Space between buttons. */
/* Some string lengths. */
#define MAXLEN_TEMPSTR 256 /* Max size for temp storage. */
#define WIN_POS_STR_MAX_LEN 20 /* Max length for window-position
* string. */
#define MENU_ITEM_NAME_LEN 32 /* Menu item name lengths. */
/* Length of keyboard input queue. */
#define CHARACTER_QUEUE_LENGTH 32
#define MOUSE_QUEUE_LENGTH 32
/* Number of resize callback functions we can keep track of. */
#define RESIZE_CALLBACK_ARRAY_SIZE 3
/* Number of bytes held in the write accumulator. */
#define WRITE_ACCUM_SIZE 200
/* Max time that may pass between calls to GetMessage. See mswin_charavail()
*/
#define GM_MAX_TIME 3000 /* In milliseconds.*/
/* My Timer Message */
#define MY_TIMER_ID 33
#define MY_TIMER_PERIOD (UINT)60000 /* timeout period in miliseconds. */
#define MY_TIMER_SHORT_PERIOD (UINT)5000 /* used when there is a task in
the OnTask list. */
#define MY_TIMER_VERY_SHORT_PERIOD (UINT)500 /* used when SIGALRM and alarm()
is set. */
#define MY_TIMER_EXCEEDINGLY_SHORT_PERIOD (UINT)80 /* used when
gAllowMouseTracking is set */
#define TIMER_FAIL_MESSAGE "Failed to get all necessary Windows resoruce (timers). Pine will run, but may not be able to keep the connection to the server alive. Quiting other applications and restarting Pine may solve the problem."
/*
* Below here are fixed constancs that really should not be changed.
*/
/* Cursor states. */
#define CS_SHOW 0x01 /* Cursor is not hidden. */
#define CS_FOCUSED 0x02 /* Window is focused. */
#define CS_VISIBLE 0x03 /* When above two bits set, cursor is
* visible. */
/* Auto Wrap States. */
#define WRAP_OFF 0 /* Never wrap to next line. */
#define WRAP_ON 1 /* Wrap to next line. */
#define WRAP_NO_SCROLL 2 /* Wrap to next line but DON'T scroll
screen to do it. */
/* Speicial keys in the Character Queue. */
#define CQ_FLAG_DOWN 0x01
#define CQ_FLAG_EXTENDED 0x02
#define CQ_FLAG_ALT 0x04
/* Special ASCII characters. */
#define ASCII_BEL 0x07
#define ASCII_BS 0x08
#define ASCII_TAB 0x09
#define ASCII_LF 0x0A
#define ASCII_CR 0x0D
#define ASCII_XON 0x11
#define ASCII_XOFF 0x13
/* Character Attributes. */
#define CHAR_ATTR_NORM 0x00 /* Normal. */
#define CHAR_ATTR_REV 0x01 /* Reverse Video. */
#define CHAR_ATTR_SEL 0x02 /* Selected text. */
#define CHAR_ATTR_NOT 0x80 /* No attributes. */
/*
* Different applications that we know about.
*/
#define APP_UNKNOWN 0
#define APP_PICO 1
#define APP_PICO_IDENT "pico"
#define APP_PINE 2
#define APP_PINE_IDENT "pine"
/*
* Control values for call to AccelCtl.
*/
#undef ACCELERATORS
#define ACCEL_UNLOAD 0 /* Unload the accelerators. */
#define ACCEL_LOAD 1 /* Load the accelerators. */
#define ACCEL_TOGGLE 2 /* Toggle the accelerators. */
/* Offsets to objects in window extra storage. */
#define GWL_PTTYINFO 0 /* Offset in Window extra storage. */
#define GWL_PTEXTINFO 0 /* Offset in Window extra storage. */